package rtc.core.net.rpc;

/**
 * Created by Administrator on 2018/2/24.
 */

public abstract class RpcCallback<T> {

    private final IReference mReference;

    public RpcCallback(IReference reference) {
        this.mReference = reference;
    }

    public IReference getReference() {
        return mReference;
    }

    public interface IReference{
        IReference getReference();
    }

    protected abstract void onResult(int code, String msg, T data, RpcEntity response);
}
